package org.springblade.modules.admin.dto.cert;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springblade.modules.admin.entity.CertWork;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description 证件类型新增或编辑DTO
 * @Author ysq
 * @Date 2024/04/01
 **/
@Data
public class CertClassificationSubmitDTO {

	@ApiModelProperty(value = "主键id(编辑时传)")
	private Long id;

	@NotBlank(message = "证件类型名称不能为空")
	@ApiModelProperty(value = "证件类型名称")
	private String name;

	@NotNull(message = "作业项目不能为空")
	@ApiModelProperty(value = "作业项目集合")
	private List<CertWork> certWorkList;

	@Min(value = 0, message = "证件到期天数值需大于等于0")
	@Max(value = 9999, message = "证件到期天数值不能大于9999")
	@NotNull(message = "证件到期天数提醒不能为空")
	@ApiModelProperty(value = "证件到期天数提醒")
	private Integer expireIn;
}
